package com.bw.service;

import com.bw.bean.Emp;
import com.bw.dao.EmpDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpDao dao;

    @Override
    public List<Emp> getList2(String name) {
        return dao.getList2(name);
    }

    @Override
    public List<Emp> getList(Integer money, String jdata1, String jdata2) {
        return dao.getList(money, jdata1, jdata2);
    }

    @Override
    public int tjAdd(String name, Integer num, Integer money, String jdata, Integer cid) {
        return dao.tjAdd(name, num, money, jdata, cid);
    }

    @Override
    public int scDele(Integer id) {
        return dao.scDele(id);
    }

    @Override
    public int xgUpdata() {
        return dao.xgUpdata();
    }
}
